package com.itheima.domain.db;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

//用户类
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_user_topic")
public class UserTopic implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;//id

    @TableField(value = "user_id")
    private Long userId;//用户id

    @TableField(value = "score")
    private Integer score; //分数

    @TableField(value = "result_id")
    private Long resultId; //结果id

    @TableField(value = "dimensionality_1")
    private Long dimensionality1; //维度1
    @TableField(value = "dimensionality_2")
    private Long dimensionality2; //维度2
    @TableField(value = "dimensionality_3")
    private Long dimensionality3; //维度3
    @TableField(value = "dimensionality_4")
    private Long dimensionality4; //维度4

    @TableField(value = "`unlock`")
    private Integer unlock; //是否解锁

    @TableField(fill = FieldFill.INSERT) //插入时自动填充
    private Date created;//创建时间
    @TableField(fill = FieldFill.INSERT_UPDATE)//插入和更新时自动更新
    private Date updated;//更新时间
}